import { createRouter, createWebHistory } from 'vue-router'
import Vmenu from "../view/vmenu.vue";
import Buser from "../components/Buser.vue";
import Breply from "../components/Breply.vue";
import Bvideo from "../components/Bvideo.vue";

const routes = [
    {
        path: "/",
        name: "menu",
        component: Vmenu,
        children: [
            {
                path: "/buser",
                name: "buser",
                component: Buser,
            }, {
                path: "/breply",
                name: "breply",
                component: Breply,
            }, {
                path: "/bvideo",
                name: "bvideo",
                component: Bvideo,
            },
        ]
    }
]

//路由对象
const router = createRouter({
    history: createWebHistory(),
    routes //上面的路由数组
})

export default router